package cn.itcast;


import cn.itcast.util.SysConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.awt.*;
import java.io.File;

@SpringBootApplication
public class StlApplication {
    public static void main(String[] args) throws InterruptedException {

        File file=new File(SysConfig.UPLOAD_DIR);
        if(!file.exists()){
            //如果不存在就创建文件夹
            System.out.println("没有检测到资源文件夹，正在准备创建文件夹，需要时间...");
            Thread.sleep(1000);
            file.mkdir();
            System.out.println("静态文件夹创建成功........");
        }


        SpringApplication.run(StlApplication.class, args);
    }
}